package com.bulls.demo.hrmsdemo.db;

import java.io.Serializable;
import javax.persistence.*;

import java.math.BigDecimal;


/**
 * The persistent class for the employee_experience database table.
 * 
 */
@Entity
@NamedQuery(name="fetchEmployeeExperienceByEmployeeID",query="SELECT EmployeeExperiences FROM EmployeeExperience AS EmployeeExperiences WHERE EmployeeExperiences.employeeId = :employeeID")
@Table(name="employee_experience")
public class EmployeeExperience implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="EMPLOYEE_EXPERIENCE_EXPERIENCEID_GENERATOR", sequenceName="EMPLOYEE_EXPERIENCE_SEQ")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EMPLOYEE_EXPERIENCE_EXPERIENCEID_GENERATOR")
	@Column(name="experience_id")
	private String experienceId;

	private String company;

	private String designation;

	@Column(name="employee_id")
	private Long employeeId;

	private String role;

	@Column(name="years_of_experience")
	private BigDecimal yearsOfExperience;

	public EmployeeExperience() {
	}

	public String getExperienceId() {
		return this.experienceId;
	}

	public void setExperienceId(String experienceId) {
		this.experienceId = experienceId;
	}

	public String getCompany() {
		return this.company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getDesignation() {
		return this.designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public Long getEmployeeId() {
		return this.employeeId;
	}

	public void setEmployeeId(Long employeeId) {
		this.employeeId = employeeId;
	}

	public String getRole() {
		return this.role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public BigDecimal getYearsOfExperience() {
		return this.yearsOfExperience;
	}

	public void setYearsOfExperience(BigDecimal yearsOfExperience) {
		this.yearsOfExperience = yearsOfExperience;
	}

}